// 系统路由
const routes = [
  {
    name: 'layout',
    path: '/',
    component: () => import('@/layout/index.vue'),
    redirect: 'dashboard',
    children: [
      // {
      //   name: 'dashboard',
      //   path: '/dashboard',
      //   component: () => import('@/views/dashboard/index.vue'),
      //   meta: {
      //     hideInMenu: true,
      //     title: '仪表盘',
      //     icon: 'icon-dashboard',
      //     locale: 'dashboard',
      //     affix: true
      //   },
      // },
      {
        name: 'profile',
        path: '/profile',
        component: () => import('@/views/admin/profile.vue'),
        meta: {
          hideInMenu: true,
          title: '个人中心',
          locale: 'profile',
        },
      },
    ],
  },
  {
    name: 'login',
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
      locale: 'login',
    },
  },
  // {
  //   name: 'profile',
  //   path: '/profile',
  //   component: () => import('@/views/admin/profile.vue'),
  //   meta: {
  //     hideInMenu: true,
  //     title: '个人中心',
  //     locale: 'profile',
  //   },
  // },
  {
    path: "/:pathMatch(.*)*",
    component: () => import('@/layout/404.vue'),
    meta: {
      hideInMenu: true,
      title: '访问的页面不存在',
      locale: 'not_exist',
    },
  }
]

export default routes;